package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.bizimpl.upmp.domain.AlipayInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author LiuYuLiang.LL
*/
    public interface AlipayInfoService extends IService<AlipayInfo> {



    IPage<AlipayInfo> findByPage(QueryRequest request, AlipayInfo alipayInfo);

    void createAlipayInfo(AlipayInfo alipayInfo);

    @Transactional
    void updateAlipayInfo(AlipayInfo alipayInfo);

    @Transactional
    void cancelAlipayInfo(String id);

    @Transactional
    void deleteAlipayInfo(String[] alipayInfos);

    AlipayInfo getByUk(String alipayNo);

    // 查重方法1
    List<String> findAllAlipayNo();

    // 查重方法2
    List<String> findAllAlipayNo(String alipayNo, String id);

    // 查重方法3
    List<String> findAllAlipayName();

    // 查重方法4
    List<String> findAllAlipayName(String alipayName, String id);
}
